from peewee import BigIntegerField, BigAutoField, CharField

from common.model.abstrct import AbstractModel


class TotalCategory(AbstractModel):
    class Meta:
        table_name = "tb_category"
        auto_increment_base = 10_000

    category_id = BigAutoField(primary_key=True, help_text="品类id")
    name = CharField(max_length=16, help_text="品类名称")
    parent_id = BigIntegerField(null=True, help_text="父类id")

